package com.ch02.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName HelloController
 * @Description TODO
 * @Author Kx
 * @Date 2025/5/9 11:20
 * @Version 1.0
 */
// 标识为控制器
@Controller
public class HelloController {
    // 映射请求
    @RequestMapping("/hello")
    public String hello() {
        return "index";
    }
}
